# $NetBSD$

DISTNAME=	fractal-release-4.4.1
CATEGORIES=	chat
MASTER_SITES=	https://gitlab.gnome.org/GNOME/fractal/-/archive/release-4.4.1/

MAINTAINER=	cirnatdan@NetBSD.org
HOMEPAGE=	https://gitlab.gnome.org/GNOME/fractal
COMMENT=	Matrix group messaging app
LICENSE=	gnu-gpl-v3

USE_LANGUAGES+=		c c++
USE_TOOLS+=		pkg-config

TOOL_DEPENDS+=		patchelf-[0-9]*:../../devel/patchelf

MAKE_ENV+=		GETTEXT_DIR=${PREFIX}
MAKE_ENV+=		GETTEXT_SYSTEM=enabled

pre-install:
	patchelf --set-rpath ${PREFIX}/lib ${WRKSRC}/output/fractal-gtk/src/fractal

CARGO_CRATE_DEPENDS+=	addr2line-0.13.0
CARGO_CRATE_DEPENDS+=	adler-0.2.3
CARGO_CRATE_DEPENDS+=	aes-0.3.2
CARGO_CRATE_DEPENDS+=	aes-soft-0.3.3
CARGO_CRATE_DEPENDS+=	aesni-0.6.0
CARGO_CRATE_DEPENDS+=	aho-corasick-0.7.13
CARGO_CRATE_DEPENDS+=	ammonia-2.1.2
CARGO_CRATE_DEPENDS+=	ansi_term-0.11.0
CARGO_CRATE_DEPENDS+=	ansi_term-0.12.1
CARGO_CRATE_DEPENDS+=	arrayref-0.3.6
CARGO_CRATE_DEPENDS+=	arrayvec-0.5.1
CARGO_CRATE_DEPENDS+=	async-compression-0.3.5
CARGO_CRATE_DEPENDS+=	atk-0.8.0
CARGO_CRATE_DEPENDS+=	atk-sys-0.9.1
CARGO_CRATE_DEPENDS+=	atty-0.2.14
CARGO_CRATE_DEPENDS+=	autocfg-0.1.7
CARGO_CRATE_DEPENDS+=	autocfg-1.0.0
CARGO_CRATE_DEPENDS+=	backtrace-0.3.50
CARGO_CRATE_DEPENDS+=	base64-0.11.0
CARGO_CRATE_DEPENDS+=	base64-0.12.3
CARGO_CRATE_DEPENDS+=	bincode-1.3.1
CARGO_CRATE_DEPENDS+=	bitflags-1.2.1
CARGO_CRATE_DEPENDS+=	blake2b_simd-0.5.10
CARGO_CRATE_DEPENDS+=	block-buffer-0.7.3
CARGO_CRATE_DEPENDS+=	block-cipher-trait-0.6.2
CARGO_CRATE_DEPENDS+=	block-modes-0.3.3
CARGO_CRATE_DEPENDS+=	block-padding-0.1.5
CARGO_CRATE_DEPENDS+=	bumpalo-3.4.0
CARGO_CRATE_DEPENDS+=	byte-tools-0.3.1
CARGO_CRATE_DEPENDS+=	byteorder-1.3.4
CARGO_CRATE_DEPENDS+=	bytes-0.4.12
CARGO_CRATE_DEPENDS+=	bytes-0.5.6
CARGO_CRATE_DEPENDS+=	cairo-rs-0.8.1
CARGO_CRATE_DEPENDS+=	cairo-sys-rs-0.9.2
CARGO_CRATE_DEPENDS+=	cc-1.0.58
CARGO_CRATE_DEPENDS+=	cfg-if-0.1.10
CARGO_CRATE_DEPENDS+=	chrono-0.4.13
CARGO_CRATE_DEPENDS+=	clap-2.33.2
CARGO_CRATE_DEPENDS+=	cloudabi-0.0.3
CARGO_CRATE_DEPENDS+=	comrak-0.7.0
CARGO_CRATE_DEPENDS+=	constant_time_eq-0.1.5
CARGO_CRATE_DEPENDS+=	core-foundation-0.7.0
CARGO_CRATE_DEPENDS+=	core-foundation-sys-0.7.0
CARGO_CRATE_DEPENDS+=	crc32fast-1.2.0
CARGO_CRATE_DEPENDS+=	crossbeam-utils-0.7.2
CARGO_CRATE_DEPENDS+=	crypto-mac-0.7.0
CARGO_CRATE_DEPENDS+=	dbus-0.2.3
CARGO_CRATE_DEPENDS+=	digest-0.8.1
CARGO_CRATE_DEPENDS+=	directories-2.0.2
CARGO_CRATE_DEPENDS+=	dirs-2.0.2
CARGO_CRATE_DEPENDS+=	dirs-sys-0.3.5
CARGO_CRATE_DEPENDS+=	dtoa-0.4.6
CARGO_CRATE_DEPENDS+=	either-1.5.3
CARGO_CRATE_DEPENDS+=	either-1.6.1
CARGO_CRATE_DEPENDS+=	encoding_rs-0.8.23
CARGO_CRATE_DEPENDS+=	entities-1.0.1
CARGO_CRATE_DEPENDS+=	failure-0.1.8
CARGO_CRATE_DEPENDS+=	failure_derive-0.1.8
CARGO_CRATE_DEPENDS+=	fake-simd-0.1.2
CARGO_CRATE_DEPENDS+=	flate2-1.0.16
CARGO_CRATE_DEPENDS+=	fnv-1.0.7
CARGO_CRATE_DEPENDS+=	foreign-types-0.3.2
CARGO_CRATE_DEPENDS+=	foreign-types-shared-0.1.1
CARGO_CRATE_DEPENDS+=	fragile-1.0.0
CARGO_CRATE_DEPENDS+=	fuchsia-cprng-0.1.1
CARGO_CRATE_DEPENDS+=	fuchsia-zircon-0.3.3
CARGO_CRATE_DEPENDS+=	fuchsia-zircon-sys-0.3.3
CARGO_CRATE_DEPENDS+=	futf-0.1.4
CARGO_CRATE_DEPENDS+=	futures-0.3.5
CARGO_CRATE_DEPENDS+=	futures-channel-0.3.5
CARGO_CRATE_DEPENDS+=	futures-core-0.3.5
CARGO_CRATE_DEPENDS+=	futures-executor-0.3.5
CARGO_CRATE_DEPENDS+=	futures-io-0.3.5
CARGO_CRATE_DEPENDS+=	futures-macro-0.3.5
CARGO_CRATE_DEPENDS+=	futures-sink-0.3.5
CARGO_CRATE_DEPENDS+=	futures-task-0.3.5
CARGO_CRATE_DEPENDS+=	futures-util-0.3.5
CARGO_CRATE_DEPENDS+=	gdk-0.12.1
CARGO_CRATE_DEPENDS+=	gdk-pixbuf-0.8.0
CARGO_CRATE_DEPENDS+=	gdk-pixbuf-sys-0.9.1
CARGO_CRATE_DEPENDS+=	gdk-sys-0.9.1
CARGO_CRATE_DEPENDS+=	generic-array-0.12.3
CARGO_CRATE_DEPENDS+=	getrandom-0.1.14
CARGO_CRATE_DEPENDS+=	gettext-rs-0.4.2
CARGO_CRATE_DEPENDS+=	gettext-sys-0.19.9
CARGO_CRATE_DEPENDS+=	gimli-0.22.0
CARGO_CRATE_DEPENDS+=	gio-0.8.1
CARGO_CRATE_DEPENDS+=	gio-sys-0.9.1
CARGO_CRATE_DEPENDS+=	glib-0.9.3
CARGO_CRATE_DEPENDS+=	glib-sys-0.9.1
CARGO_CRATE_DEPENDS+=	gobject-sys-0.9.1
CARGO_CRATE_DEPENDS+=	gspell-0.4.0
CARGO_CRATE_DEPENDS+=	gspell-sys-0.4.0
CARGO_CRATE_DEPENDS+=	gstreamer-0.15.7
CARGO_CRATE_DEPENDS+=	gstreamer-audio-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gstreamer-base-0.15.4
CARGO_CRATE_DEPENDS+=	gstreamer-base-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gstreamer-pbutils-0.15.1
CARGO_CRATE_DEPENDS+=	gstreamer-pbutils-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gstreamer-player-0.15.5
CARGO_CRATE_DEPENDS+=	gstreamer-player-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gstreamer-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gstreamer-video-0.15.7
CARGO_CRATE_DEPENDS+=	gstreamer-video-sys-0.8.1
CARGO_CRATE_DEPENDS+=	gtk-0.8.1
CARGO_CRATE_DEPENDS+=	gtk-sys-0.9.2
CARGO_CRATE_DEPENDS+=	h2-0.2.6
CARGO_CRATE_DEPENDS+=	hashbrown-0.8.1
CARGO_CRATE_DEPENDS+=	heck-0.3.1
CARGO_CRATE_DEPENDS+=	hermit-abi-0.1.15
CARGO_CRATE_DEPENDS+=	hkdf-0.8.0
CARGO_CRATE_DEPENDS+=	hmac-0.7.1
CARGO_CRATE_DEPENDS+=	html2pango-0.3.2
CARGO_CRATE_DEPENDS+=	html5ever-0.23.0
CARGO_CRATE_DEPENDS+=	http-0.2.1
CARGO_CRATE_DEPENDS+=	http-body-0.3.1
CARGO_CRATE_DEPENDS+=	httparse-1.3.4
CARGO_CRATE_DEPENDS+=	hyper-0.13.7
CARGO_CRATE_DEPENDS+=	hyper-tls-0.4.3
CARGO_CRATE_DEPENDS+=	idna-0.1.5
CARGO_CRATE_DEPENDS+=	idna-0.2.0
CARGO_CRATE_DEPENDS+=	indexmap-1.5.0
CARGO_CRATE_DEPENDS+=	iovec-0.1.4
CARGO_CRATE_DEPENDS+=	ipnet-2.3.0
CARGO_CRATE_DEPENDS+=	itertools-0.8.2
CARGO_CRATE_DEPENDS+=	itoa-0.4.6
CARGO_CRATE_DEPENDS+=	js-sys-0.3.44
CARGO_CRATE_DEPENDS+=	kernel32-sys-0.2.2
CARGO_CRATE_DEPENDS+=	lazy_static-1.4.0
CARGO_CRATE_DEPENDS+=	letter-avatar-1.2.1
CARGO_CRATE_DEPENDS+=	libc-0.2.74
CARGO_CRATE_DEPENDS+=	libhandy-0.5.0
CARGO_CRATE_DEPENDS+=	libhandy-sys-0.5.0
CARGO_CRATE_DEPENDS+=	linkify-0.3.1
CARGO_CRATE_DEPENDS+=	lmdb-0.8.0
CARGO_CRATE_DEPENDS+=	lmdb-sys-0.8.0
CARGO_CRATE_DEPENDS+=	locale_config-0.2.3
CARGO_CRATE_DEPENDS+=	log-0.4.11
CARGO_CRATE_DEPENDS+=	loggerv-0.7.2
CARGO_CRATE_DEPENDS+=	mac-0.1.1
CARGO_CRATE_DEPENDS+=	maplit-1.0.2
CARGO_CRATE_DEPENDS+=	markup5ever-0.8.1
CARGO_CRATE_DEPENDS+=	matches-0.1.8
CARGO_CRATE_DEPENDS+=	md5-0.7.0
CARGO_CRATE_DEPENDS+=	mdl-1.0.4
CARGO_CRATE_DEPENDS+=	memchr-2.3.3
CARGO_CRATE_DEPENDS+=	mime-0.3.16
CARGO_CRATE_DEPENDS+=	mime_guess-2.0.3
CARGO_CRATE_DEPENDS+=	miniz_oxide-0.4.0
CARGO_CRATE_DEPENDS+=	mio-0.6.22
CARGO_CRATE_DEPENDS+=	miow-0.2.1
CARGO_CRATE_DEPENDS+=	muldiv-0.2.1
CARGO_CRATE_DEPENDS+=	native-tls-0.2.4
CARGO_CRATE_DEPENDS+=	net2-0.2.34
CARGO_CRATE_DEPENDS+=	new_debug_unreachable-1.0.4
CARGO_CRATE_DEPENDS+=	num-0.2.1
CARGO_CRATE_DEPENDS+=	num-bigint-0.2.6
CARGO_CRATE_DEPENDS+=	num-complex-0.2.4
CARGO_CRATE_DEPENDS+=	num-integer-0.1.43
CARGO_CRATE_DEPENDS+=	num-iter-0.1.41
CARGO_CRATE_DEPENDS+=	num-rational-0.2.4
CARGO_CRATE_DEPENDS+=	num-traits-0.2.12
CARGO_CRATE_DEPENDS+=	num_cpus-1.13.0
CARGO_CRATE_DEPENDS+=	object-0.20.0
CARGO_CRATE_DEPENDS+=	once_cell-1.4.0
CARGO_CRATE_DEPENDS+=	opaque-debug-0.2.3
CARGO_CRATE_DEPENDS+=	openssl-0.10.30
CARGO_CRATE_DEPENDS+=	openssl-probe-0.1.2
CARGO_CRATE_DEPENDS+=	openssl-sys-0.9.58
CARGO_CRATE_DEPENDS+=	pango-0.8.0
CARGO_CRATE_DEPENDS+=	pango-sys-0.9.1
CARGO_CRATE_DEPENDS+=	pangocairo-0.9.0
CARGO_CRATE_DEPENDS+=	pangocairo-sys-0.10.1
CARGO_CRATE_DEPENDS+=	paste-0.1.18
CARGO_CRATE_DEPENDS+=	paste-impl-0.1.18
CARGO_CRATE_DEPENDS+=	percent-encoding-1.0.1
CARGO_CRATE_DEPENDS+=	percent-encoding-2.1.0
CARGO_CRATE_DEPENDS+=	pest-2.1.3
CARGO_CRATE_DEPENDS+=	pest_derive-2.1.0
CARGO_CRATE_DEPENDS+=	pest_generator-2.1.3
CARGO_CRATE_DEPENDS+=	pest_meta-2.1.3
CARGO_CRATE_DEPENDS+=	phf-0.7.24
CARGO_CRATE_DEPENDS+=	phf_codegen-0.7.24
CARGO_CRATE_DEPENDS+=	phf_generator-0.7.24
CARGO_CRATE_DEPENDS+=	phf_shared-0.7.24
CARGO_CRATE_DEPENDS+=	pin-project-0.4.23
CARGO_CRATE_DEPENDS+=	pin-project-internal-0.4.23
CARGO_CRATE_DEPENDS+=	pin-project-lite-0.1.7
CARGO_CRATE_DEPENDS+=	pin-utils-0.1.0
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.18
CARGO_CRATE_DEPENDS+=	ppv-lite86-0.2.8
CARGO_CRATE_DEPENDS+=	precomputed-hash-0.1.1
CARGO_CRATE_DEPENDS+=	proc-macro-hack-0.5.18
CARGO_CRATE_DEPENDS+=	proc-macro-nested-0.1.6
CARGO_CRATE_DEPENDS+=	proc-macro2-0.4.30
CARGO_CRATE_DEPENDS+=	proc-macro2-1.0.19
CARGO_CRATE_DEPENDS+=	quote-0.6.13
CARGO_CRATE_DEPENDS+=	quote-1.0.7
CARGO_CRATE_DEPENDS+=	rand-0.6.5
CARGO_CRATE_DEPENDS+=	rand-0.7.3
CARGO_CRATE_DEPENDS+=	rand_chacha-0.1.1
CARGO_CRATE_DEPENDS+=	rand_chacha-0.2.2
CARGO_CRATE_DEPENDS+=	rand_core-0.3.1
CARGO_CRATE_DEPENDS+=	rand_core-0.4.2
CARGO_CRATE_DEPENDS+=	rand_core-0.5.1
CARGO_CRATE_DEPENDS+=	rand_hc-0.1.0
CARGO_CRATE_DEPENDS+=	rand_hc-0.2.0
CARGO_CRATE_DEPENDS+=	rand_isaac-0.1.1
CARGO_CRATE_DEPENDS+=	rand_jitter-0.1.4
CARGO_CRATE_DEPENDS+=	rand_os-0.1.3
CARGO_CRATE_DEPENDS+=	rand_pcg-0.1.2
CARGO_CRATE_DEPENDS+=	rand_xorshift-0.1.1
CARGO_CRATE_DEPENDS+=	rdrand-0.4.0
CARGO_CRATE_DEPENDS+=	redox_syscall-0.1.57
CARGO_CRATE_DEPENDS+=	redox_users-0.3.4
CARGO_CRATE_DEPENDS+=	regex-1.3.9
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.18
CARGO_CRATE_DEPENDS+=	remove_dir_all-0.5.3
CARGO_CRATE_DEPENDS+=	reqwest-0.10.7
CARGO_CRATE_DEPENDS+=	ruma-identifiers-0.17.1
CARGO_CRATE_DEPENDS+=	rust-argon2-0.7.0
CARGO_CRATE_DEPENDS+=	rustc-demangle-0.1.16
CARGO_CRATE_DEPENDS+=	ryu-1.0.5
CARGO_CRATE_DEPENDS+=	schannel-0.1.19
CARGO_CRATE_DEPENDS+=	secret-service-1.1.0
CARGO_CRATE_DEPENDS+=	security-framework-0.4.4
CARGO_CRATE_DEPENDS+=	security-framework-sys-0.4.3
CARGO_CRATE_DEPENDS+=	serde-1.0.114
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.114
CARGO_CRATE_DEPENDS+=	serde_json-1.0.57
CARGO_CRATE_DEPENDS+=	serde_urlencoded-0.6.1
CARGO_CRATE_DEPENDS+=	sha-1-0.8.2
CARGO_CRATE_DEPENDS+=	sha2-0.8.2
CARGO_CRATE_DEPENDS+=	siphasher-0.2.3
CARGO_CRATE_DEPENDS+=	slab-0.4.2
CARGO_CRATE_DEPENDS+=	socket2-0.3.12
CARGO_CRATE_DEPENDS+=	sourceview4-0.2.0
CARGO_CRATE_DEPENDS+=	sourceview4-sys-0.2.0
CARGO_CRATE_DEPENDS+=	string_cache-0.7.5
CARGO_CRATE_DEPENDS+=	string_cache_codegen-0.4.4
CARGO_CRATE_DEPENDS+=	string_cache_shared-0.3.0
CARGO_CRATE_DEPENDS+=	strsim-0.8.0
CARGO_CRATE_DEPENDS+=	strum-0.18.0
CARGO_CRATE_DEPENDS+=	strum_macros-0.18.0
CARGO_CRATE_DEPENDS+=	subtle-1.0.0
CARGO_CRATE_DEPENDS+=	syn-0.15.44
CARGO_CRATE_DEPENDS+=	syn-1.0.38
CARGO_CRATE_DEPENDS+=	synstructure-0.12.4
CARGO_CRATE_DEPENDS+=	tempfile-3.1.0
CARGO_CRATE_DEPENDS+=	tendril-0.4.1
CARGO_CRATE_DEPENDS+=	textwrap-0.11.0
CARGO_CRATE_DEPENDS+=	thiserror-1.0.20
CARGO_CRATE_DEPENDS+=	thiserror-impl-1.0.20
CARGO_CRATE_DEPENDS+=	thread_local-1.0.1
CARGO_CRATE_DEPENDS+=	time-0.1.43
CARGO_CRATE_DEPENDS+=	tinyvec-0.3.3
CARGO_CRATE_DEPENDS+=	tokio-0.2.22
CARGO_CRATE_DEPENDS+=	tokio-socks-0.2.2
CARGO_CRATE_DEPENDS+=	tokio-tls-0.3.1
CARGO_CRATE_DEPENDS+=	tokio-util-0.3.1
CARGO_CRATE_DEPENDS+=	tower-service-0.3.0
CARGO_CRATE_DEPENDS+=	tracing-0.1.18
CARGO_CRATE_DEPENDS+=	tracing-core-0.1.13
CARGO_CRATE_DEPENDS+=	try-lock-0.2.3
CARGO_CRATE_DEPENDS+=	twoway-0.2.1
CARGO_CRATE_DEPENDS+=	typed-arena-1.7.0
CARGO_CRATE_DEPENDS+=	typenum-1.12.0
CARGO_CRATE_DEPENDS+=	ucd-trie-0.1.3
CARGO_CRATE_DEPENDS+=	unchecked-index-0.2.2
CARGO_CRATE_DEPENDS+=	unicase-2.6.0
CARGO_CRATE_DEPENDS+=	unicode-bidi-0.3.4
CARGO_CRATE_DEPENDS+=	unicode-normalization-0.1.13
CARGO_CRATE_DEPENDS+=	unicode-segmentation-1.6.0
CARGO_CRATE_DEPENDS+=	unicode-width-0.1.8
CARGO_CRATE_DEPENDS+=	unicode-xid-0.1.0
CARGO_CRATE_DEPENDS+=	unicode-xid-0.2.1
CARGO_CRATE_DEPENDS+=	unicode_categories-0.1.1
CARGO_CRATE_DEPENDS+=	url-1.7.2
CARGO_CRATE_DEPENDS+=	url-2.1.1
CARGO_CRATE_DEPENDS+=	utf-8-0.7.5
CARGO_CRATE_DEPENDS+=	vcpkg-0.2.10
CARGO_CRATE_DEPENDS+=	vec_map-0.8.2
CARGO_CRATE_DEPENDS+=	version_check-0.9.2
CARGO_CRATE_DEPENDS+=	want-0.3.0
CARGO_CRATE_DEPENDS+=	wasi-0.9.0+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+=	wasm-bindgen-0.2.67
CARGO_CRATE_DEPENDS+=	wasm-bindgen-backend-0.2.67
CARGO_CRATE_DEPENDS+=	wasm-bindgen-futures-0.4.17
CARGO_CRATE_DEPENDS+=	wasm-bindgen-macro-0.2.67
CARGO_CRATE_DEPENDS+=	wasm-bindgen-macro-support-0.2.67
CARGO_CRATE_DEPENDS+=	wasm-bindgen-shared-0.2.67
CARGO_CRATE_DEPENDS+=	web-sys-0.3.44
CARGO_CRATE_DEPENDS+=	winapi-0.2.8
CARGO_CRATE_DEPENDS+=	winapi-0.3.9
CARGO_CRATE_DEPENDS+=	winapi-build-0.1.1
CARGO_CRATE_DEPENDS+=	winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	winreg-0.7.0
CARGO_CRATE_DEPENDS+=	ws2_32-sys-0.2.1
USE_PKGLOCALEDIR=	yes

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Darwin"
.include "../../x11/gtk-mac-integration/buildlink3.mk"
.endif

.include "../../security/libsecret/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../devel/libhandy/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../multimedia/gst-plugins1-editing-services/buildlink3.mk"
.include "../../multimedia/gst-plugins1-bad/buildlink3.mk"
.include "../../multimedia/gst-plugins1-base/buildlink3.mk"
.include "../../multimedia/gstreamer1/buildlink3.mk"
.include "../../textproc/gspell/buildlink3.mk"
.include "../../x11/gtksourceview4/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../devel/glib2/schemas.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/meson/build.mk"
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
